﻿using Ongoal.Quotation.Common;
using SqlSugar;

namespace Ongoal.Quotation.Service.Model.Sys
{
    /// <summary>
    /// 导航菜单表
    /// </summary>
    public class T_Sys_NavigationMenu : ModelBase
    {
        /// <summary>
        /// 菜单编码
        /// </summary>
        public string MenuCode { get; set; } = "";

        /// <summary>
        /// 菜单名称
        /// </summary>
        public string MenuName { get; set; } = "";

        /// <summary>
        /// 英文名称    
        /// </summary>
        public string EngName { get; set; } = "";

        /// <summary>
        /// 排序码
        /// </summary>
        public int SortCode { get; set; }

        /// <summary>
        /// 图标
        /// </summary>
        public string Icon { get; set; } = "";

        /// <summary>
        /// 菜单路径
        /// </summary>
        public string MenuUrl { get; set; } = "";

        /// <summary>
        /// 二维组态路径
        /// </summary>
        public string TwoDUrl { get; set; } = "";

        /// <summary>
        /// 界面JSON
        /// </summary>
        public string JSON { get; set; } = "";

        /// <summary>
        /// 父节点ID
        /// </summary>
        public int ParentID { get; set; }

        /// <summary>
        /// 子节点
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public List<T_Sys_NavigationMenu> Children { get; set; } = new List<T_Sys_NavigationMenu>();
    }
}
